package Two;

import javax.naming.Name;

//创建一个book对象  属性包括 :  编号  书名  价格  当前库存
public class Book {

    public int id;

    public String name;

    public double money;

    public int stock;

    public Book(){}

    public Book(int id,String name,double money,int stock){

        this.id=id;

        this.name=name;

        this.money=money;

        this.stock=stock;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
}
